//
/***********************************************************
             File name:      main.c
             Author:         Bitat (陆叁柒)
             Email :         Bitat@qq.com
             Gitee :         https://gitee.com/bitat
             CSDN  :         https://blog.csdn.net/bitat
             History:        2023/2/11
 ************************************************************/

#include <stdio.h>

void Reverse(char* str)
{
    char* p;
    for (p = str; *p != '\0'; p++)
    {
        ;
    }
    //*p已经是'\0'
    p--;  //所以要减1
    char temp;
    while (str < p)
    {
        temp = *p;
        *p = *str;
        *str = temp;
        str++;
        p--;
    }
}
 
int main()
{
    char arr[100];
    scanf("%s", arr);
    Reverse(arr);
    printf("%s\n",arr);
    return 0;
}

